/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 接入认证绑定[OpenAccessAuthDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("接入认证绑定DTO")
public class OpenAccessAuthDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 第三方用户全局名
     */
    @JsonProperty("name")
    @JSONField(name = "name")
    @ApiModelProperty(value = "第三方用户全局名", position = 1)
    private String name;

    /**
     * 第三方用户凭据
     */
    @JsonProperty("credential")
    @JSONField(name = "credential")
    @ApiModelProperty(value = "第三方用户凭据", position = 2)
    private String credential;

    /**
     * 创建人
     */
    @JsonProperty("creator")
    @JSONField(name = "creator")
    @ApiModelProperty(value = "创建人", position = 3)
    private String creator;

    /**
     * 创建时间
     */
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "create_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", position = 4)
    private Date createTime;

    /**
     * 最后更新人
     */
    @JsonProperty("updater")
    @JSONField(name = "updater")
    @ApiModelProperty(value = "最后更新人", position = 5)
    private String updater;

    /**
     * 最后更新时间
     */
    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "update_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后更新时间", position = 6)
    private Date updateTime;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 7)
    private String dc;

    /**
     * 人员标识
     */
    @JsonProperty("person_id")
    @JSONField(name = "person_id")
    @ApiModelProperty(value = "人员标识", position = 8)
    private String personId;

    /**
     * 用户全局名(uid/loginname)
     */
    @JsonProperty("uid")
    @JSONField(name = "uid")
    @ApiModelProperty(value = "用户全局名(uid/loginname)", position = 9)
    private String uid;

    /**
     * 接入标识
     */
    @JsonProperty("access_id")
    @JSONField(name = "access_id")
    @ApiModelProperty(value = "接入标识", position = 10)
    private String accessId;

    /**
     * RefreshToken标识
     */
    @JsonProperty("refresh_token")
    @JSONField(name = "refresh_token")
    @ApiModelProperty(value = "RefreshToken标识", position = 11)
    private String refreshToken;

    /**
     * Token标识
     */
    @JsonProperty("token_id")
    @JSONField(name = "token_id")
    @ApiModelProperty(value = "Token标识", position = 12)
    private String tokenId;

    /**
     * token
     */
    @JsonProperty("token")
    @JSONField(name = "token")
    @ApiModelProperty(value = "token", position = 13)
    private String token;

    /**
     * 第三方用户详细信息
     */
    @JsonProperty("params")
    @JSONField(name = "params")
    @ApiModelProperty(value = "第三方用户详细信息", position = 14)
    private String params;

    /**
     * 接入类型
     */
    @JsonProperty("access_type")
    @JSONField(name = "access_type")
    @ApiModelProperty(value = "接入类型", position = 15)
    private String accessType;

    /**
     * 接入名称
     */
    @JsonProperty("access_name")
    @JSONField(name = "access_name")
    @ApiModelProperty(value = "接入名称", position = 16)
    private String accessName;

    /**
     * 手机号
     */
    @JsonProperty("mobile")
    @JSONField(name = "mobile")
    @ApiModelProperty(value = "手机号", position = 17)
    private String mobile;

    /**
     * 头像
     */
    @JsonProperty("avatar")
    @JSONField(name = "avatar")
    @ApiModelProperty(value = "头像", position = 18)
    private String avatar;

    /**
     * 邮箱
     */
    @JsonProperty("mail")
    @JSONField(name = "mail")
    @ApiModelProperty(value = "邮箱", position = 19)
    private String mail;


    /**
     * 设置 [第三方用户全局名]
     */
    public OpenAccessAuthDTO setName(String name) {
        this.name = name;
        this.modify("name", name);
        return this;
    }

    /**
     * 设置 [第三方用户凭据]
     */
    public OpenAccessAuthDTO setCredential(String credential) {
        this.credential = credential;
        this.modify("credential", credential);
        return this;
    }

    /**
     * 设置 [DC]
     */
    public OpenAccessAuthDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [人员标识]
     */
    public OpenAccessAuthDTO setPersonId(String personId) {
        this.personId = personId;
        this.modify("person_id", personId);
        return this;
    }

    /**
     * 设置 [用户全局名(uid/loginname)]
     */
    public OpenAccessAuthDTO setUid(String uid) {
        this.uid = uid;
        this.modify("uid", uid);
        return this;
    }

    /**
     * 设置 [接入标识]
     */
    public OpenAccessAuthDTO setAccessId(String accessId) {
        this.accessId = accessId;
        this.modify("access_id", accessId);
        return this;
    }

    /**
     * 设置 [RefreshToken标识]
     */
    public OpenAccessAuthDTO setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
        this.modify("refresh_token", refreshToken);
        return this;
    }

    /**
     * 设置 [Token标识]
     */
    public OpenAccessAuthDTO setTokenId(String tokenId) {
        this.tokenId = tokenId;
        this.modify("token_id", tokenId);
        return this;
    }

    /**
     * 设置 [token]
     */
    public OpenAccessAuthDTO setToken(String token) {
        this.token = token;
        this.modify("token", token);
        return this;
    }

    /**
     * 设置 [第三方用户详细信息]
     */
    public OpenAccessAuthDTO setParams(String params) {
        this.params = params;
        this.modify("params", params);
        return this;
    }

    /**
     * 设置 [接入类型]
     */
    public OpenAccessAuthDTO setAccessType(String accessType) {
        this.accessType = accessType;
        this.modify("access_type", accessType);
        return this;
    }

    /**
     * 设置 [接入名称]
     */
    public OpenAccessAuthDTO setAccessName(String accessName) {
        this.accessName = accessName;
        this.modify("access_name", accessName);
        return this;
    }

    /**
     * 设置 [手机号]
     */
    public OpenAccessAuthDTO setMobile(String mobile) {
        this.mobile = mobile;
        this.modify("mobile", mobile);
        return this;
    }

    /**
     * 设置 [头像]
     */
    public OpenAccessAuthDTO setAvatar(String avatar) {
        this.avatar = avatar;
        this.modify("avatar", avatar);
        return this;
    }

    /**
     * 设置 [邮箱]
     */
    public OpenAccessAuthDTO setMail(String mail) {
        this.mail = mail;
        this.modify("mail", mail);
        return this;
    }


}
